Produced by Araxis Merge on 2020-08-14 00:01:34 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Porto v3.2.3/Magento 2.x/Porto Theme/app/code/Mageplaza/LayeredNavigation/view/frontend/templates | filter.phtml | 2016-09-26 19:15:52 +0000 |
| 2 | 2020-08-14 00:01:34 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 68 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <ol class="items"> | |||||
| 2 | <?php foreach ($filterItems as $filterItem): ?> | |||||
| 3 | <?php | |||||
| 4 | $filter = $filterItem->getFilter(); | |||||
| 5 | $attributeModel = $filter->getData('attribute_model'); | |||||
| 6 | $inputName = $filter->getRequestVar(); | |||||
| 7 | $requestValue = $block->getRequest()->getParam($inputName); | |||||
| 8 | $requestArray = $requestValue ? explode(',', $requestValue) : []; | |||||
| 9 | $url = in_array($filterItem->getValue(), $requestArray) ? $filterItem->getRemoveUrl() : $filterItem->getUrl(); | |||||
| 10 | ?> | |||||
| 11 | <li class="item"> | |||||
| 12 | <?php if($attributeModel && $attributeModel->getFrontendInput() == 'price'): ?> | |||||
| 13 | <?php | |||||
| 14 | $productCollection = $filter->getLayer()->getProductCollection(); | |||||
| 15 | $productCollectionClone = $productCollection->getCollectionClone(); | |||||
| 16 | $collection = $productCollectionClone | |||||
| 17 | ->removeAttributeSearch(['price.from', 'price.to']); | |||||
| 18 | ||||||
| 19 | $min = $collection->getMinPrice(); | |||||
| 20 | $max = $collection->getMaxPrice(); | |||||
| 21 | ||||||
| 22 | list($from, $to) = $requestValue ? explode('-', $requestValue) : [$min, $max]; | |||||
| 23 | ?> | |||||
| 24 | <div id="ln_price_attribute"> | |||||
| 25 | <div id="ln_price_slider"></div> | |||||
| 26 | <div id="ln_price_text"></div> | |||||
| 27 | </div> | |||||
| 28 | <script type="text/x-magento-init"> | |||||
| 29 | { | |||||
| 30 | "#ln_price_attribute": { | |||||
| 31 | "Mageplaza_LayeredNavigation/js/price/slider": { | |||||
| 32 | "selectedFrom": <?php echo $from ?>, | |||||
| 33 | "selectedTo": <?php echo $to ?>, | |||||
| 34 | "minValue": <?php echo $min ?>, | |||||
| 35 | "maxValue": <?php echo $max ?>, | |||||
| 36 | "priceFormat": <?php /* @escapeNotVerified */ echo $this->helper('Magento\Tax\Helper\Data')->getPriceFormat($block->getStore()); ?>, | |||||
| 37 | "ajaxUrl": <?php /* @escapeNotVerified */ echo $this->helper('Magento\Framework\Json\Helper\Data')->jsonEncode($filterItem->getUrl()) ?> | |||||
| 38 | } | |||||
| 39 | } | |||||
| 40 | } | |||||
| 41 | </script> | |||||
| 42 | <?php break; ?> | |||||
| 43 | <?php else: ?> | |||||
| 44 | » » » » <?php if ($filterItem->getCount() > 0): ?> | |||||
| 45 | <a href="<?php echo $block->escapeUrl($url) ?>"> | |||||
| 46 | <?php if($attributeModel && $attributeModel->getFrontendInput() == 'multiselect'): ?> | |||||
| 47 | <input type="checkbox" <?php echo in_array($filterItem->getValue(), $requestArray) ? 'checked="checked"' : '' ?> /> | |||||
| 48 | <?php endif; ?> | |||||
| 49 | » » » » » » <?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?> | |||||
| 50 | <?php if ($this->helper('\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?> | |||||
| 51 | <span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label"> | |||||
| 52 | » » » » » » » » <?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span> | |||||
| 53 | <?php endif; ?> | |||||
| 54 | » » » » » </a> | |||||
| 55 | <?php else:?> | |||||
| 56 | <?php if($attributeModel && $attributeModel->getFrontendInput() == 'multiselect'): ?> | |||||
| 57 | <input type="checkbox" disabled="disabled" /> | |||||
| 58 | <?php endif; ?> | |||||
| 59 | <?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?> | |||||
| 60 | <?php if ($this->helper('\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?> | |||||
| 61 | <span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label"> | |||||
| 62 | » » » » » » » <?php if ($filterItem->getCount() == 1):?><?php /* @escapeNotVerified */ echo __('item')?><?php else:?><?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span> | |||||
| 63 | <?php endif; ?> | |||||
| 64 | <?php endif; ?> | |||||
| 65 | <?php endif; ?> | |||||
| 66 | </li> | |||||
| 67 | <?php endforeach ?> | |||||
| 68 | </ol> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.